Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add basic metrics #35

Merged
merged 21 commits into from
May 31, 2024
Merged

Add basic metrics #35

merged 21 commits into from
May 31, 2024

Conversation

chris124567
Copy link
Member

Add a Metrics function to the store/explorer interface and an associated endpoint to get:

  • Current height
  • Current difficulty
  • Total hosts
  • Active contracts
  • Storage utilization

And add associated checks throughout the existing tests and a separate test for host announcements.

@chris124567 chris124567 requested a review from n8maninger May 22, 2024 16:18
@chris124567 chris124567 requested a review from n8maninger May 28, 2024 18:08
@n8maninger n8maninger requested a review from ChrisSchinnerl May 29, 2024 02:54
persist/sqlite/consensus.go Outdated Show resolved Hide resolved
persist/sqlite/consensus.go Show resolved Hide resolved
persist/sqlite/init.sql Show resolved Hide resolved
persist/sqlite/consensus.go Outdated Show resolved Hide resolved
persist/sqlite/consensus.go Outdated Show resolved Hide resolved
persist/sqlite/consensus.go Outdated Show resolved Hide resolved
persist/sqlite/init.sql Show resolved Hide resolved
@ChrisSchinnerl ChrisSchinnerl merged commit fc8b737 into master May 31, 2024
6 checks passed
@ChrisSchinnerl ChrisSchinnerl deleted the add-metrics2 branch May 31, 2024 08:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants